package com.example.naodian.mapper;

import com.example.naodian.domain.po.EegDataBlock;
import com.example.naodian.domain.po.Warning;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 预警信息表 Mapper 接口
 * </p>
 *
 * @author icewx
 * @since 2025-04-17
 */
public interface WarningMapper extends BaseMapper<Warning> {

    //List<Warning> getListByTypeAndTime(@Param("type") Integer type,@Param("date") LocalDate date);

    /**
     * 根据预警id查询相关点位信息
     * @param id
     * @return
     */
    List<EegDataBlock> getEegDataBlockById(Long id);


    List<Warning> getListByTypeAndTime(Map map);
}
